package itsm.isperp.workflow.listener;

import itsm.isperp.workflow.utils.BpmConst;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.DelegateTask;

/**
 * 
 * 人物完成后监听器
 * 
 * @author lizx
 * @date 2013-6-26
 * 
 */
public class TaskCompleteListener extends BaseTaskListener {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	protected boolean execute(DelegateTask delegateTask,
			DelegateExecution delegateExecution, String actDefId, String nodeId) {

		// String taskAssignee = delegateTask.getAssignee();
		//
		// Short approvalStatus = (Short) delegateTask
		// .getVariable("approvalStatus_"
		// + delegateTask.getTaskDefinitionKey());
		// String approvalContent = (String) delegateTask
		// .getVariable("approvalContent_"
		// + delegateTask.getTaskDefinitionKey());

		return true;

	}

	@Override
	protected String getScriptType() {
		return BpmConst.CompleteScript;
	}

}